package com.ruoyi.StarStudio.Service.Impl;

import com.ruoyi.StarStudio.Domain.Warning;
import com.ruoyi.StarStudio.Mapper.WarningMapper;
import com.ruoyi.StarStudio.Service.WarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarningServiceImpl implements WarningService {

    @Autowired
    private WarningMapper warningMapper;

    @Override
    public List<Warning> getAll() {
        return warningMapper.getAll();
    }

    @Override
    public Warning getByZoneId(Integer zone_id) {
        return warningMapper.getByZoneId(zone_id);
    }

    @Override
    public void update(Warning warning) {
        warningMapper.update(warning);
    }

}
